package com.mimosa.common.system.role;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.mimosa.common.entity.BaseEntity;

/**
 * 角色信息实体对象
 * 
 * @filename TRole.java
 * @author ggeagle
 * @date 2013-5-21 上午10:23:55
 */
@Entity
@Table(name = "T_ROLE")
public class TRole extends BaseEntity {
	/**
	 * 角色名称 （32）
	 */
	@Column(length = 32, nullable = false)
	private String roleName;

	/**
	 * 角色编码（32）
	 */
	@Column(length = 32, nullable = true)
	private String roleCode;

	public String getRoleCode() {
		return roleCode;
	}

	public void setRoleCode(String roleCode) {
		this.roleCode = roleCode;
	}

	/**
	 * 角色描述（512）
	 */
	@Column(length = 512, nullable = true)
	private String roleDesc;
	/**
	 * 角色类型
	 */
	@Column(length = 8, nullable = false)
	private String roleType = RoleType.CUSTOM.name();

	// getter,setter
	public String getRoleName() {
		return roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	public String getRoleDesc() {
		return roleDesc;
	}

	public void setRoleDesc(String roleDesc) {
		this.roleDesc = roleDesc;
	}

	public String getRoleType() {
		return roleType;
	}

	public void setRoleType(String roleType) {
		this.roleType = roleType;
	}
}